7-67  quadʹӦ(Simpson)֡
 
ȱMļ¡
function f=fun1(x)
f=x.^2./(1+sin(x)+x.^2);
end
Mļfun1.mΪ档Enterȷϡ
>> quad('fun1',0,1)
ans =
    0.2301
>>
